package cn.scxy.bookcity.controller;

import cn.scxy.bookcity.mapper.ProductMapper;
import cn.scxy.bookcity.pojo.vo.shoppingCarVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/product")
public class ProductController {
    @Autowired
    ProductMapper mapper;

    @RequestMapping("/car/select")
    public List<shoppingCarVO> selectProduct() {
        return mapper.selectProduct();
    }
}
